<?php
	//session_start();
//	require 'includes/dvt_config.php';
	
	function VeCode(){
		$string_alphabet = "0123456789qwertyuiopasdfghjklzxcvbnm";
		$length_code = 6;
	
		for($i = 0; $i < $length_code; $i ++) {
	
			$random_code = rand(0, strlen($string_alphabet) - 1);
	
			$array_code[$i] = substr($string_alphabet, $random_code, 1);
	
		}
	
		$string_code= join("", $array_code);
	
		$_SESSION['verify_code'] = $string_code;
		
		return $string_code;
	}
	
?>